import request from '@/utils/request'

// 查询流程条件列表
export function listFlowconditions(query) {
  return request({
    url: '/flow/flowconditions/list',
    method: 'get',
    params: query
  })
}

// 查询流程条件详细
export function getFlowconditions(id) {
  return request({
    url: '/flow/flowconditions/' + id,
    method: 'get'
  })
}

// 新增流程条件
export function addFlowconditions(data) {
  return request({
    url: '/flow/flowconditions',
    method: 'post',
    data: data
  })
}

// 修改流程条件
export function updateFlowconditions(data) {
  return request({
    url: '/flow/flowconditions',
    method: 'put',
    data: data
  })
}

// 删除流程条件
export function delFlowconditions(id) {
  return request({
    url: '/flow/flowconditions/' + id,
    method: 'delete'
  })
}

// 导出流程条件
export function exportFlowconditions(query) {
  return request({
    url: '/flow/flowconditions/export',
    method: 'get',
    params: query
  })
}
